* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  background-color: #eee;
}

header {
  text-align: center;
  background-color: rgb(88, 215, 173);
  color: white;
  padding: 1.5rem;
}

form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 40vw;
  margin: auto;
  background-color: rgb(248, 248, 248);
  margin-top: 5rem;
  padding: 3rem;
  border-radius: 15px;
}

form input {
  width: 60%;
  border: none;
  border-bottom: 2px solid #aaa;
  background-color: inherit;
  font-size: 130%;
  font-family: monospace;
  margin-top: 5px;
  margin-bottom: 1rem;
}

form input:focus {
  outline: none;
}

form label {
  align-self: flex-start;
  margin-left: 20%;
  color: #999;
}

.box {
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 1.5rem;
  margin-top: 1rem;
  width: 60%;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  background-color: #eee;
}

.checkbox {
  width: 50px;
  height: 50px;
  border: 1px solid #999;
  border-radius: 5px;
  cursor: pointer;
}

.checkbox:hover {
  border-color: black;
  background-color: rgb(247, 247, 247);
}

form button {
  border: none;
  color: white;
  background-color: rgb(88, 215, 173);
  padding: 15px 2rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 110%;
}

form button:hover {
  background-color: rgba(88, 215, 173, 0.9);
}

.modal {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  width: 450px;
  height: 600px;
  background-color: white;
  padding: 1rem;
  box-sizing: content-box;
}

.head {
  background-color: rgb(14, 79, 74);
  color: white;
  padding: 1rem;
}

.head h2 {
  margin-bottom: 1rem;
}

.images {
  display: grid;
  grid-template-columns: repeat(3, 150px);
  grid-template-rows: repeat(3, 150px);
  width: 100%;
  height: 450px;
}

.images div {
  padding: .5rem;
}

.images img {
  width: 100%;
  height: 100%;
}

.images .selected img {
  border: .5rem solid rgb(14, 79, 74);
}

.footer {
  display: flex;
  padding: .5rem;
  justify-content: space-between;
}

.footer img {
  cursor: pointer;
}

.footer button {
  border: none;
  color: white;
  background-color: rgb(14, 79, 74);
  padding: 10px 1.5rem;
  border-radius: none;
  cursor: pointer;
}

.footer button:hover {
  background-color: rgba(14, 79, 74, 0.9);
}

.toast {
  position: absolute;
  background-color: #888;
  color: white;
  top: 7rem;
  margin: auto;
  left: 0;
  right: 0;
  width: 10rem;
  text-align: center;
  padding: 1rem;
  border-radius: 10px;
  animation: show 0.5s;
}

@keyframes show {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}